<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="lib/sheet.css" type="text/css">
</head>
<body>
<%
call CheckRights(1,5)

if request.QueryString("id")<>"" then id=SafeRequest("id",1) Else response.end
sql="select id from yb where post=1 and id="&id
set rs = Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then 
	response.write("找不到货单或在非本岗位中！")
	response.end
end if
set cmd=Server.CreateObject("ADODB.Command")
sql="delete * from yb where post=1 and id="&id
cmd.ActiveConnection=conn
cmd.CommandText = sql
cmd.Execute
set cmd=nothing
rs.close
set rs=nothing
set conn=nothing
%>
删除成功！

</body>
</html>
